package com.example.demo.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class BlogException extends RuntimeException{
    private int code;
    private String msg;
    public BlogException(String msg){
        this.msg=msg;
    }
    public BlogException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
